from flask import Blueprint

ad = Blueprint('ad',__name__,url_prefix='/admin')
# ad = Blueprint('ad',__name__,url_prefix='/admin',static_folder='',template_folder='')


@ad.before_request
def bf():
    print("before_request")

@ad.route('/home')
def home():
    return "home"

@ad.route('/xxx')
def xxx():
    return "xxx"